package shop.local.ui.gui;
import javax.swing.JLabel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class GuestPanel extends NaviPanel {
	
	private MainWindow main;
	/**
	 * Create the panel.
	 */
	public GuestPanel(MainWindow window) {
		super(window);
		
		main = window;
		JLabel lblRegistrieren = new JLabel("Registrieren");
		lblRegistrieren.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				main.registrieren();
			}
		});
		add(lblRegistrieren, "cell 0 1");
		
		JLabel lblKontakt = new JLabel("Kontakt");
		lblKontakt.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				main.kontakt();
			}
		});
		add(lblKontakt, "cell 0 2");
		
	}

}
